package valueobjects;


 public class WrnBLog {

	 
		protected String per;
		protected String atkName; 
		protected int divmenge;
		
	
	public WrnBLog(){
		
	}
	
	public WrnBLog(String per,String artkname, int menge){
		this.per = per;
		this.atkName = artkname;
		this.divmenge = menge;
	}
	
	
	public void setWrnbPer(String newPers){
		this.per = newPers;
	}
	
	public String getWrnbPer(){
		return this.per;
	}	
	
	public void setWrnbMenge(int newMenge){
		this.divmenge = newMenge;
	}
	
	public int getWrnbMenge(){
		return this.divmenge;
	}
	
	public void setWrnbName(String newName){
		this.atkName = newName;
	}
	
	public String getWrnbName(){
		return this.atkName;
	}


	public String toString(){
		return ("Person "+per+" hat Artikel "+atkName+" auf "+divmenge+" gebracht ");
	}
	
	public boolean equals(Object obj) {
		if (obj instanceof Artikel) {
			if (this.atkName == ((WrnBLog)obj).atkName)
				return true;
		}
		return false;
	}
	
	
}